package com.xxgc.springboot.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author Mr.Abel
 * @since 2022-09-14
 */
@Getter
@Setter
  @ApiModel(value = "Orders对象", description = "订单")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
      //指定主键生成策略使用雪花算法（默认策略）
      @TableId(type = IdType.ASSIGN_ID)
      private String id;

      @ApiModelProperty("订单名")
      private String name;

      @ApiModelProperty("订单数量")
      private Integer quantity;

      @ApiModelProperty("有效字段")
      private Boolean flag;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;


}
